//1.导入对象中定义的变量
import { flag, sum } from "./aaa.js";
if (flag) {
  console.log("I am a genius");
}
//2.直接导入export中定义的表变量
import { num1, height } from "./aaa.js";
console.log(num1);
console.log(height);

//3.导入export 的function中定义的函数
import { mu1 } from "./aaa.js";
console.log(mu1(10, 20));
import { Person } from "./aaa.js";
const p = new Person();
p.run();

//4.导入 export default 中的内容
import addr from "./aaa.js";
addr("123");

//5.统一全部导入
import * as aaa from "./aaa.js";
console.log(aaa.flag);
console.log(aaa.height);
